﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

using System.Windows.Navigation;


namespace intern_project1
{
    /// <summary>
    /// NavigationHost.xaml에 대한 상호 작용 논리
    /// </summary>
    public partial class NavigationHost : NavigationWindow
    {
        public static NavigationHost host;
        public NavigationHost()
        {
            InitializeComponent();
            host = this;
        }

        public static void bmode()
        {
            //throw new NotImplementedException();
            //BModePage BPage = new BModePage();

            host.NavigationService.Navigate(new Uri("View/BModePage.xaml", UriKind.Relative));

        }

        public static void cmode()
        {
            //throw new NotImplementedException();
            //CModePage CPage = new CModePage();
            //CPage.NavigationService.Navigate(new Uri("CModePage.xaml", UriKind.Relative));
            host.NavigationService.Navigate(new Uri("View/CModePage.xaml", UriKind.Relative));
        }

        public static void mmode()
        {
            //throw new NotImplementedException();
            //MModePage MPage = new MModePage();
            //MPage.NavigationService.Navigate(new Uri("MModePage.xaml", UriKind.Relative));
            host.NavigationService.Navigate(new Uri("View/MModePage.xaml", UriKind.Relative));
        }
    }
}
